/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.purpose.mapper;

import com.koron.purpose.bean.ResponsibilitiesLibBean;
import org.apache.ibatis.annotations.Param;
import org.koron.ebs.mybatis.EnvSource;

import java.util.List;
import java.util.Map;


public interface ResponsibilitiesLibMapper {

    /**
     * 列表查询
     *
     * @param map
     * @return
     */
    List<ResponsibilitiesLibBean> queryForList(Map map);

    /**
     * 列表查询 统计
     *
     * @param map
     * @return
     */
    Integer countForList(Map map);

    /**
     * 根据id 状态查询职责项
     *
     * @param id id
     * @return
     */
    ResponsibilitiesLibBean queryById(@Param("id") String id);

    /**
     * 根据id 状态 删除 职责项
     *
     * @param id     id
     * @param status 状态
     * @return
     */
    Integer delete(@Param("id") String id, @Param("status") String status);

    /**
     * 新增 职责项
     *
     * @param bean
     * @return
     */
    Integer insert(ResponsibilitiesLibBean bean);

    /**
     * 修改 职责项
     *
     * @param bean
     * @return
     */
    Integer update(ResponsibilitiesLibBean bean);

    Integer batchInsert(@Param("beanList") List<ResponsibilitiesLibBean> beanList);
}
